exposed function to get point