switch to eigen types.