fix for extra col and row