finally determineVisibleCondition working properly