update pin model