transform class to filename