start implementing advance querings