change offer getbyid func