apply on cursor