removed duplicate func decl