comments added for clarity