added more conditionals to summing up statement re passes