move comment closer to source logic for clarity