handling last block & breaking the project