added proper compression