not fully tested compressing