updated indented if statements