solution for format conversion