recompiled diagram and added changes to test bench