fixed issue for large values