fix sign convention that was causing problems when calculating BRP in the brpprocessing package