replace library select