Shifting and reflecting functions