having trouble with stopping alarm