fixed s if statement