added functionality to blocks