added type attribut to variables