move fg plane declarations back to fg plane section