threes eval function first version complete