baking code in bake operator