added in support for selections