test logic update