added basic idea for how to handle unbalanced trip memory rows