added output variable