attempted to use some subprocesses, too muhc overhead. Saving the code just in case