fixing compiler error