add gain to mlp