removed superfluous move operations

this patch removes all move operations for returning local
values from a function