working version of midnight (1-4-24)