added ref_power to logamplitude