moved initiation to right scope