fixed def for opt compile