add functions and modified gaussian wave