fix deprecated calls