shortening implementation of selection append