changing files list to classmap