remove two warnings