moved into a module formatgs