progressing on the algo