solution to rotation mix translation in one layer.