quick fix for deprecation warning