added update_price_func and update_file_func