move and optimize format