adding types defs