shake method added