return commit first