uncommented web worker functions for so long