update / add, type definitions