add types to every attribute