made it to manage keys dynamically