making a function to associate denied key temporary