added selection on plugs table