CBS will get a guest appearance from Kid Cudi next week on the new, high-tech drama Scorpion. The show is about a team of super smart problem solvers and Cudi will play a musical prodigy who invented an algorithm to “aggregate data from every hit pop song” in order to churn out even more mathematically perfect pop hits.

The clip does include a quick burn on Macklemore, who we all know sounds an awful lot like Cudi, especially on “Thin Line.” It also reunites Cudi with his former How To Make It In America, co-star Eddie Kaye Thomas.

Entertainment Weekly reports that Method Man will also appear in the episode as a hip-hop manager who may have stolen Cudi’s algorithm.