Set value of p1.col and p1.row before insert