block calculation error corrected