added grandparents function to parents controller