deleted closed backet in incorrect place