improve cpr validation