added phase offset.