cleaning warnings
deprecated takes two arguments