acomplish move and scale function