fixing the digital gain