still can't get Type working correctly