adding frequency period and phase