fixing lang deprecation