commit after stock clear function