prototype with parallel processing implemented