made it slower again for timing performance of original code