added some small compression to states