for some reason 'out var ...' stopped working. Reverting