clean up printf and constants