changed reader to scanner