fixed some old warnings