routine reduction bug removed