added min and max value labels
bugfix