removed unnecessary object copy