custody determined on best interests of child