Replaced VariableType to type