returns a number in all over cases test passed