solution 2 added