introduce class for relation selector