getter for parent as integer