wrapping editor properly