uses Sophie code to calc alpha