improving pi.go