changed concrete type of type check to its interface