check if commit works