fix deprecated methods return values