checking for div by 0