created functionality to give shift