update code for home kit