made output return as collection