literal transform. accounts for empty capture