rename class according to the file name