added output attributes and method