fixed func decl