forgot reference instead of copy