fixed -taking-address-of-temporary compiler error