removed bug with illeagal argument exception