what about a cleaner way for this? setting reference counting to false?