add translation and scale