optimize post location and post piece location