added more comments to try to figure this out