latest working version thank the gods