Changed to fit newest definition

Throw compile error, changed to use newest definition