fixed x as variable to set compression. Cant call a method with an String representation of method name