fixed empty checkword method