added the shake to clear functionality