generate compressed file half way