removed all deprecation warnings from specs