new code to add_shift