added some methods for data access