deleted unnecessary printwriter code.