manually input pi, fix some syntax bug