added object wrapping