fill `origin` in correct form