adding type in files