Remove top and END_DOT