cleanup of variable relevance calculation