add support for selection