improve boost sample