needs entire responce object to funciton