fixed checkword method