change type of content functions for recursive uses