moved FileTypes to constructor