solve var problem