cater for comparison of subclasses