interface fixed and added num parents field