add check for agreement to phi