got rid of the deprecation warning