cleaned up if statement