move errors to top