how to make efficient output