polynomial solution