just changed NULL's to nullptrs. this guy wrote nice code