trying to undefined-value error