modify valuebase logic