removed a void if condition