added utility method for NSIndexPath