changed rep into integer values and clean up rep disp func