formatting and commenting code