reformatting if condition