replaced deprecated classTag >:> check with typeTag <:< check