some more extended algorithms to make prices