replace all the stuff into right place