answer discover function done