printed out posterior surrogate and also fixed bug in compression