added smooth key weight var