add interval polymorphic type and remove old search stuff