fix deprication throw() syntax