removed unused scope variable