everything is working except compression ration calculation