walked thru the code