refactor parego