update solution 5