to make sure everyttthing is committed