在...的時候, 當...時
at the same time as something else is happening; while
而, 然而
in contrast or comparison to the fact that; whereas