added phase count