commenting code for clarity.