added search function [s3]