added mroe shifting code but needs axis flipping