set periods, fixed hash.compact! header