final version of wrapping