changed placement of data call to fix error