refactoring & partial EAN-13