add prices function