started creating multithreaded parsing function