rephrase
make gain an integer