fix deprecates