putting the warn in the right place