added variable limit
fixed csv bug