minor refactoring: updating response for otp#generate