added check for 0