handle < and >