working on weather controller logic