fixed some deprecated warnings