switching to else if