change alph and phi as original code