fix arg and add func decl.