how do i map a potentiometer from 0 - 1023 to 0 - 127 problems

but i aint im just frustrated as its for a uni project and its due in very soon. when i removed the map funcs and devided the pots by 8 as was said in previous reply i get the same problem as before nothing changes
any and all help is greatly appreciated