refactoring in the pawn