fixing a compiler error