separate func and start parsing format field