to many blocks in 'if'