changed int to var