added fetch method (for fetching values based on the parameters)