put warning to the right place