init motor first