output matches sample