Formatting and var to val