optimize alternator + setvalidposition