make check_owner as private fun