comment added and names changed for clarity