remove read sample func