added another function so that we can push register references for assigment statements