simple gain management