resolved deprecation bug