prev warning working for all