some positioning rewriting