trying to resolv deprecation warning