rename file according to class