moved to use int