added strange division by zero fix back in