added '>>' to output redirection