update printout function and also rewrite the normalized function