trying to add logic to response