add comment to explain if/else condition