fixed bugs related to mutate recipe
some minor chages have been made