modified implinting of remain table