finished replacement function. starting comments and declaring old projects this was related too.