undoing previous commit (not implemented correctly)