improving the code of blocks with a base object