removing set!
fixing bug in chained keys