better code for make output