playing with own implemtentation of panning