Second Eiditon

first add discover function