commit what could be a working algorithm