draw pg corner canidates
gcc4.7 thread fix