switched to stack based access, initialization runs a lot faster