implemented function . for other data types