moving access_data to separate variable