whoops, forgot the getdata() function