refactoring Pad10