added work with blocks