put parallel stuff in different files, 1 for each function