logical test added