how the code differs for preset