adjust if statement formatting