wrap code if needed