added midnight scheme