missing variables declarations in setContent function