more comments added - no logic change