add int and pSQL function and one more condition