fixed runtime normalization to be based on gain