commit for task 6 with updated error correction