introduce methods to avoid comparing by class