added malloc error message helper macro
added comment note