better coefficent extraction