pseudo code commented out