modified access to deprecated function, compiles now with versions > diamodback