changed every long to int