fixed deprecation notice