do as the compiler message says, switch from deprecated option