fixed obsolete errors