bugfix for deprecated method