update size recommendation code