fixed tabs and if statement