wip
code state at end of video