change var to val