s04 algo last modifications final commit