trying to get the rain variable working properly