removed unused code, and fixed the creation of the rain