changed int to long