solution for NO.169