selection api finished