added failed_cas param