removed duplicated type attribute