add check integer overflow function;