begin to add adjust code