cleaned up print format for print_element