first, naive approach to commit()