solution from author - comments