corrected compiler error