correcting compile error