updated 171 code