fixed illegal arg exeption