moves types to new file