a little modification of discover