storing data type values in collection