tried to add file reading but it does not work