pre-multiprocessing

ready to implement multiprocessing