Check over flow

To avoid the overflow