trying to get type to work