here's the sky and ground code