fixed typo which prevented output