improved :set command, and used lambda function
use apply instead of ok