searching functions added