removed internal input since file functions work fine