now with reading file