if statements collapsed, formatting