removed unused seq variable