const type error fix