fixed main file, able to input text