some convenient way to commit.