adding catch for zero case