ability to get cursor index
improving design