create transpose method step1