fixed coding failures