changed declarator name and fixed compile error