wrote part of data access section