added loop to generate multiple OTPs