adapting hotline's price generation