edits for counting