james | correcting a type error