fix heredoc