modify context to include attribute