math cleanup.
index