saving data in multiple types