set the value for specific key