type not being set automatically, do it explicitly