made output more efficient