code consistency between classes