adding ground.type to return the type of a variable