reformatted the gaussian function and the parameter c