added save functions for data models