fixes task 6371