minor edits to cocntfun