fixed some deprecated methods