changing logic in an if statement for testing