refactor table row