trying to fix division error