compiler errors corrected