added/fixed the compression property

I tried to left changes dirty so the fix would not change too much :)