updates the order of action ot reduce one more step if possible