fixed output variable initialization