remove endblock