do not search if no layer is chosen