change setCursor method