rewrite with left instead of right index