added state change to pending