fixed divide by zero. all tests passing