scope type error