commit and sleep