converted ints to longs to support larger datasets