fixed indentation issue with if statement