finish the core implementation of global data placement