my algorithm implementation is complete