Trying to get det phase calc to work v1 MAR
debug v2 MAR