refactor A-Priori implementation