trying to fix copy elimination