changes value to type error