nullify pointers
typo
prettify
replace threadprivate variable