modified gainValue