neatened up commenting code to avoid repeating sections