first attempt to fix phase