removed use of warning without call