working panning exmaple