tambah fungsi pan to my real position