added 2d gaussian fitting