long int too large to convert to int, switched to long