moved from algorithm to ps directory