working on phase regression...