fixes execution time limit problems, output still not clear