Using datatype instead of name attribute on dic