solved error: created new object instead of all referenced the same