balance quality code detailed