updated removal to search for scope