finish first draft of transform matrices