replace long to int