added output explanation