optimize constrution of potential in case of NCPP