replace usage of owned box