changing to one callback that takes error, response