added compression simulation