correct block calculation