added generic way to decorate data