expand very simple func in-place