add compress
add maxin and var