added functions to get default value of types