added ability to handle shift instructions