decided to make hex a separate file