removed bug in cl calculation
removed gain_direction variable