provided more detailed explanatory comments