update prices and refactor head