output redirection corrected