making sure everything is commited