got rid of Internal.getType()