fixed return values for parallelized functions