added blocks and resolves #4