s is changed twice