fixed the optional args.