code style nitpicking here: do we usually do a space after the if? if so, there have to be several corrections in the next lines..