revise key file