updated sample31