fixed division issues.