ph -> da (major refactoring)