added 167 solution