object should first be initialized (cursor)