added cursor prototype