need to rename "type", it's a reserved column-name