removing excess comments from cookie methods