quick pseudo code plan of how to proceed