change warning to be first not last