edits to selection functions