variable init moved to c file. caused compile error