update dir return type.