completed all translate and rotate function.