added some restrictions to displaying values