FIX: don't write inside the elements