added IndexFromPoint method