prepare to rollback