speed up, also reading file in julia