updated for phase4