trying to fix reading file