trying to fix lib compact