added loop-aes-working