fix twogap k problem and use the analytic equation to calculate