adds algorithm name as a comment