final commit. added initial comment explaining approach