remove unworking elements