overflow handling

from int to long