modified bake method