added funtion to get type guague