remove unnecesary call to cursor
minor improvement