fix the code to be the other way around