bricks counters, adding terminating coditions,debugging,testing speed