changed ConvertIndex to use Point