added potential code of polynomial