removed the stopAnimation method and modified the resetNeedle method