kraken : refactoring ptref