added some functions for data manipulation