changed to buffered input reader