refactor preset to format