The role of cognitive factors in second language writing and writing to learn a second language | Synapse