last action implementation