solving problem with redirection-2