removed old mbed code