updated to use obtained fits data.