added fitting stuff