solution for NO.165