add type declarations to 5`