removed old ground code