added codes to all files