changed syntax, modified for mecdrive