making cursor only for h2