Writing performance in primary grade: exploring the links between cognitive and motivational variables | Synapse