added some data functions