valid/known: updated code to remove deprecationwarning