initial code of shake light