return statement must no longer be the last statement in a block