fix for #3 variable name type is batting with default name