majour fix to bpc routine