replace deprecated constants