changed response callback to expect data property