change if to else if