variable apply active and history order