added args to double gaussian fitting