newly added gaussian curve fit