small fixes

small fixes such as using BLOCK SIZE global variable