replace eval to Function