add pthread, BUT corrupts sometimes
remove parallel part