fixed syntax for output redirection