move row to type class