edits for clarity and correctness