removed redundant internal variable