fixing rebasing issue with centered calculation