updated to remove deprecated call