changed file_type to entry_type