correctly init total_mark