wrote table pseudocode to flesh out tomorrow