Return X Id Ptr instead of int equivilant