added hanning and phase principle argument