working on palette gen