making sure any changes were commited