modifications in gray box to set precents %