update prices in loop