problem with missign values if max=min=0