changing downkeys to internal var