phase reconstruction lamda function