fixing compile error