added EOL chars, made dim_date start a var