fucntion checks to see if have remander of 0