changed factor to integer to avoid cmake error