nicer looking relevance function