estimating function changed from enum to String