source code through z-pole calculation