parallel method added from other own code (https://gist.github.com/barld/55444379ff9446f01e1b)