working getDelay and setDey