compression & extraction working properly