format
use search if it is a search