code compresses and bug fixes