removed typo with if