rotate function is in block namespace.