check for 0 before division.