allows min and max to work also in projections