fixed error with not accepting filename