basic outlines done, on to debugging