fixed bugs in observation loop, ready for run through