add required id to statement