removed one level of if/then bracket hierarchy by using return false