parallel bootstrap and fix bug to get discrete part