checksuming in the wrong place