swapped mustache implementation