add zero check in divide