input taken through text file