adding script for Chao's improved bound