this should  make it work as I have included the compression method, but still not tested