solving problem with redirection-3