working on sim gaussian fitting