reduce lines of code to make BPA happy