checkupd func works