updated to remove the rough calculations.