wrap additional logic in an if statement