simple way of polymorphic