corrected compile error