removed deprecated warning

self explaining i guess ;)