removed the effing parallel implementation because it was slower than single thread