changed blink in toggle and made motor function