read element from cursor