use map vector size instead of Files global