update function name and removed duplicate removeHeadLinks init