pass whole row instead of id